package cn.com.cpic.insurance.rulecheck.core.operator.impl;

import cn.com.cpic.insurance.rulecheck.core.operator.Operator;

public class NumberGreaterThanOperator implements Operator {

	public boolean calculate(String leftValue, String rightValue) {
		return Double.parseDouble(leftValue) > Double.parseDouble(rightValue);
	}

	public String getFalseMessage(String label, String value) {
		return label + "必须大于" + value;
	}

	public String getFormatMessage(String label) {
		return label + "必须是数字";
	}
}
